package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Entity
@Table(name = "shop_order_main")
public class Main implements Serializable {

	private static final long serialVersionUID = 8394026120020938002L;
	@Id
	@Column(name = "order_no_nvarchar", columnDefinition = "varchar(255) comment '订单号'")
	private String orderNo;
	@Column(name = "client_id_bigint", columnDefinition = "bigint(20) comment '客户ID'")
	private Long clientId;
	@Column(name = "create_time_datetime", columnDefinition = "datetime(3) comment '创建时间'")
	private Date createTime;
	@Column(name = "pay_type_tinyint", columnDefinition = "tinyint(1) comment '支付宝=1,微信=2,医保=3,'")
	private Integer payType;
	@Column(name = "system_status_tinyint", columnDefinition = "tinyint(1) comment '系统状态,未付款 = 1,已付款 = 2,取消 = 3'")
	private Integer systemStatus;
	@Column(name = "order_pay_time_datetime", columnDefinition = "datetime(3)")
	private Date orderPayTime;
	@Column(name = "ask_money_money", columnDefinition = "decimal(10,2) comment '含运费'")
	private BigDecimal askMoney;
	@Column(name = "transaction_id_nvarchar", columnDefinition = "varchar(255)")
	private String transactionId;
	@Column(name = "freight_money", columnDefinition = "decimal(10,2)")
	private BigDecimal freight;
	@Column(name = "order_back_tint", columnDefinition = "int(11) comment '0初始状态,1退款审核中,2退款已受理，流程退款成功（运营审核完成，待财务打款）,3退款失败,4财务确认退款'")
	private Integer orderBack;
	@Column(name = "order_back_remark_nvarchar", columnDefinition = "varchar(255)")
	private String orderBackRemark;
	@Column(name = "client_remark_nvarchar", columnDefinition = "varchar(255)")
	private String clientRemark;
	@Column(name = "disable_bit", columnDefinition = "tinyint(1)")
	private Integer disable;
}
